package com.jiazhong.ssm.test05拦截器.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:shuXin
 */
@RestController
@RequestMapping("user")
public class UserController {
    @GetMapping("get")
    public Object get() {
        System.out.println(111);
        return "ok";
    }

    @GetMapping("post")
    public Object post() {
        System.out.println(222);
        return "ok";
    }
}
